package com.ruoyi.framework.aspectj;

import com.ruoyi.framework.aspectj.commonservice.TraceIdHandlerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 拦截器定义.
 * @author : HuangDI
 * @date 2022/10/10 16:19
 */
@Configuration
public class CommonInterceptor {

    @Bean
    public TraceIdHandlerInterceptor traceIdHandlerInterceptor() {
        return new TraceIdHandlerInterceptor();
    }
}
